package com.ruoyi.erp.componentstatus.service.impl;

import com.ruoyi.erp.componentstatus.domain.ComponentStatus;
import com.ruoyi.erp.componentstatus.mapper.ComponentStatusMapper;
import com.ruoyi.erp.componentstatus.service.ComponentStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.*;
import java.util.List;

@Service
public class ComponentStatusServiceImpl implements ComponentStatusService {
    @Autowired
    private ComponentStatusMapper componentStatusMapper;
    @Override
    public List<ComponentStatus> findAll(ComponentStatus componentStatus) {
        return componentStatusMapper.findAll(componentStatus);
    }

    @Override
    public List<ComponentStatus> findAllById(String[] ids) {
        return componentStatusMapper.findAllByIds(ids);
    }


    @Override
    public void add(ComponentStatus componentStatus) {
        componentStatusMapper.add(componentStatus);
    }

    @Override
    public void delete(String[] ids) {
        componentStatusMapper.delete(ids);
    }


    @Override
    public void update(ComponentStatus componentStatus) {
        componentStatusMapper.update(componentStatus);
    }
}
